< previous page page_598 next page >

Page 598
Exercise
To change the file-copy function to a move-file function, you need to add only one Visual Basic statement to the routine. After you successfully copy the file to the destination, you have to delete it from the source directory. To do so, insert the following line of code immediately after the two Close statements:
Kill strFrom_Filename
This statement deletes the file referenced by the variable.
Day 2, The Windows Common Dialog in Use
Quiz
8694cbadb9b1ef7075903f6f95fc1db2.gif
1. The Dialog Automation Object doesn't access the Windows help engine.
8694cbadb9b1ef7075903f6f95fc1db2.gif
2. The help function doesn't have its own dialog box to display; instead, it accesses the Windows help engine to display the referenced help file.
8694cbadb9b1ef7075903f6f95fc1db2.gif
3. To use the Common Dialog's Open dialog box, you need to set these properties:
8694cbadb9b1ef7075903f6f95fc1db2.gif
Filter      DefaultExt
FilterIndex InitDir
Flags       MaxFileSize
Filename
Exercise
Any answers or example code that I could put here would match what's already in the chapter. So for this exercise, you can decide for yourself what the answer is, and it's not even cheating.
Day 3, Changing the Face of the Application
Quiz..
8694cbadb9b1ef7075903f6f95fc1db2.gif
1. You can create an MDI application by adding an MDI parent form to your project and then setting other forms' MDIChild property to True.

 
< previous page page_598 next page >

If you like this book, buy it!